home *** CD-ROM | disk | FTP | other *** search
/ BCI NET 2 / BCI NET 2.iso / archives / applications / misc / upsey.lha / UPSey / src / ups_temp.c < prev    next >
Encoding:
C/C++ Source or Header  |  1994-06-27  |  1.3 KB  |  68 lines

  1. /* This file pre-processed with  'sed -f etc/FixGTX_temp_c.sed <file>' */
  2. /* This file contains empty template routines that
  3.  * the IDCMP handler will call uppon. Fill out these
  4.  * routines with your code or use them as a reference
  5.  * to create your program.
  6.  */
  7. #include <intuition/intuition.h>
  8. #include <functions.h>
  9.  
  10. #include "ups.h"
  11. #include "main.h"
  12. #include "database.h"
  13.  
  14. #include "functions.h"
  15.  
  16. int
  17. Gadget60Clicked (struct IntuiMessage *msg)
  18. {
  19.   /* routine when gadget "" is clicked. */
  20.   return (HandleListViewGadget (msg));
  21.  
  22. }
  23.  
  24.  
  25. int
  26. Project0OpenWindow (void)
  27. {
  28.   if (Project0Wnd == NULL)
  29.     {
  30.       if (OpenProject0Window () == 0)
  31.     {
  32.       intuisigflag = (1 << Project0Wnd->UserPort->mp_SigBit);
  33.  
  34.       GT_SetGadgetAttrs (Project0Gadgets[6], Project0Wnd, NULL, GTLV_Labels, &record_list, TAG_DONE);
  35.  
  36.       GT_SetGadgetAttrs (Project0Gadgets[6], Project0Wnd, NULL, GTLV_Labels, &record_list, GTLV_Top, 0, TAG_DONE);
  37.  
  38.       DisplayRecord (0);
  39.  
  40.     }
  41.     }
  42. }
  43.  
  44.  
  45. int
  46. Project0CloseWindow (struct IntuiMessage *msg)
  47. {
  48.   /* routine for "IDCMP_CLOSEWINDOW". */
  49.  
  50.   if (Project0Wnd != NULL)
  51.     {
  52.       GT_SetGadgetAttrs (Project0Gadgets[6], Project0Wnd, NULL, GTLV_Labels, ~0, TAG_DONE);
  53.  
  54.       {
  55.     struct IntuiMessage *m;
  56.  
  57.     while (m = GT_GetIMsg (Project0Wnd->UserPort))
  58.       GT_ReplyIMsg (m);
  59.       }
  60.  
  61.       CloseProject0Window ();
  62.  
  63.       intuisigflag = 0;
  64.     }
  65.  
  66.   return (1);
  67. }
  68.